package cn.edu.neu.springbootdemo.service.impl;

import cn.edu.neu.springbootdemo.mapper.MovieChartMapper;
import cn.edu.neu.springbootdemo.model.MovieChart;
import cn.edu.neu.springbootdemo.model.Screens;
import cn.edu.neu.springbootdemo.service.MovieChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MovieChartServiceImpl  implements MovieChartService {

    @Autowired
    MovieChartMapper mapper;
    @Override
    public List<MovieChart> showMovieChart() {
       return mapper.showMovieChart();
    }

    @Override
    public Boolean deleteChartMovie(int parseInt) {
        return mapper.deleteChartMovie(parseInt);
    }

    @Override
    public void addChartMovie(MovieChart movieChart) {
        mapper.addChartMovie(movieChart);
    }

    @Override
    public List<MovieChart> getfindChartMovie(MovieChart movieChart) {
        return mapper.getfindChartMovie(movieChart);
    }

    @Override
    public MovieChart findById(int show_id) {
        return mapper.findById(show_id);
    }

    @Override
    public void updataChartMovie(MovieChart movieChart) {
         mapper.updataChartMovie(movieChart);
    }

    @Override
    public List<MovieChart> findfilm_id(int id) {
        return mapper.findfilm_id(id);
    }


}
